package Singleton;

/**
 * 单锁，效率没双重锁高，因为每次都只能被一个县城调用
 * @author Administrator
 *
 */
public class SingletonSync {

	private static SingletonSync instance;

	private SingletonSync() {
	}

	public static synchronized SingletonSync getInstance() {

		if (instance == null) {
			instance = new SingletonSync();

		}

		return instance;

	}

}
